@use "../mixins/bem" as *;
@use "../mixins/config" as *;
@use "../mixins/function" as *;

@use "./home-post-item";

@include b(postList) {
  @include e(pagination) {
    .el-pagination {
      .el-pager {
        li.is-active.number {
          background-color: var(--vp-c-brand-2);
        }
        li:not(.is-active):hover {
          color: var(--vp-c-brand-2);
        }
      }

      button.btn-prev:hover,
      button.btn-next:hover {
        color: var(--vp-c-brand-2);
      }
      .el-input__wrapper.is-focus {
        box-shadow: 0 0 0 1px var(--vp-c-brand-2) inset;
      }
    }
  }

  @include e(empty) {
    padding: 1.5rem;
    margin: 0.5px;

    @include e(empty__title) {
      margin-top: 20px;
    }
  }

  /* 封面图为 full 风格样式 */
  .full-cover:nth-child(2n) .#{$namespace}-postItem__info {
    flex-direction: row-reverse;
    .cover-img .full {
      clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
    }
  }
}
